﻿<%@ Control Language="C#" AutoEventWireup="true" Codebehind="EventList.ascx.cs" Inherits="Framework.Module.CMS.Admin.WorkFlow.EventList" %>
<%@ Register Assembly="Framework.FilePickerControl" Namespace="Framework.FilePicker"
    TagPrefix="cc1" %>
<table cellspacing="0" cellpadding="4" border="0" width="100%" class="Area">
    <tr>
        <td>
            <asp:Label ID="lblUpdateStatus" runat="server"></asp:Label></td>
    </tr>
    <tr>
        <td>
            <table class="SidePanel" cellspacing="0" cellpadding="5" width="100%" border="0">
                <tr>
                    <td width="12%">
                    </td>
                    <td style="width: 261px" width="261">
                        <asp:TextBox ID="txtID" runat="server" Width="250px" Visible="False"></asp:TextBox></td>
                    <td width="12%">
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        Tên
                    </td>
                    <td style="width: 261px">
                        <asp:TextBox ID="txtName" runat="server" Width="250px"></asp:TextBox></td>
                    <td>
                       </td>
                    <td>
                        </td>
                </tr>
                <tr>
                    <td style="height: 29px">
                        Ảnh đại diện</td>
                    <td style="width: 261px; height: 29px">
                        <cc1:filepicker id="txtAvatar" runat="server" fpPopupURL="/FilePicker/TUFilePicker.aspx"></cc1:filepicker>
                        <asp:RequiredFieldValidator ID="chknone" ControlToValidate="txtAvatar" runat="server">Chưa có ảnh</asp:RequiredFieldValidator>
                    
                    </td>
                    <td style="height: 29px">
                    </td>
                    <td style="height: 29px">
                    </td>
                </tr>
                <tr>
                    <td>
                        Giới thiệu</td>
                    <td colspan="3">
                        <asp:TextBox ID="txtDes" runat="server" Width="100%" TextMode="MultiLine" Rows="5"></asp:TextBox></td>
                </tr>
                <tr>
                    <td colspan="4" align="center">
                        <asp:Button ID="btnUpdate" runat="server" CssClass="Button" Width="107px" Text="Cập nhật" OnClick="btnUpdate_Click1"></asp:Button>
                        <asp:Button ID="btnAddNew" runat="server" CssClass="Button" Width="107" Text="Thêm mới" OnClick="btnAddNew_Click1"></asp:Button></td>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <asp:DataGrid id="dgEvents" runat="server" CssClass="Grid" AutoGenerateColumns="False" BorderStyle="Solid" BorderWidth="1px" CellPadding="2"
                Width="100%" BorderColor="Gainsboro" OnItemCommand="dgEvents_ItemCommand" OnItemDataBound="dgEvents_ItemDataBound">
                <AlternatingItemStyle CssClass="Grid_Raw2" />
                <ItemStyle CssClass="Grid_Raw1" />
                 <HeaderStyle Font-Bold="True" CssClass="Grid_Top"></HeaderStyle>
                                    
                <columns>
					<asp:BoundColumn Visible="False" DataField="Event_ID" ReadOnly="True" HeaderText="Event_ID"></asp:BoundColumn>
					<asp:TemplateColumn>
						<HeaderStyle Width="10%"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center"></ItemStyle>
						<ItemTemplate>
						    <asp:Image ID="imgAvatar" runat="server" />
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:BoundColumn DataField="Event_Name" HeaderText="T&#234;n"></asp:BoundColumn>
					<asp:BoundColumn DataField="Event_CreateDate" HeaderText="Ng&#224;y tạo">
						<HeaderStyle HorizontalAlign="Center" Width="15%"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center"></ItemStyle>
					</asp:BoundColumn>			
					 <asp:TemplateColumn>
                                            <headerstyle horizontalalign="Center" width="70px"></headerstyle>
                                            <itemstyle horizontalalign="Center"></itemstyle>
                                            <headertemplate>
									<asp:Button ID="cmdUpdateIndex" CausesValidation="false" runat="server" Width="60" CommandName="updatepriority"
										CssClass="Button" Text="Thứ tự"></asp:Button>
								</headertemplate>
                                            <itemtemplate>
									<asp:DropDownList ID="dropIndex" runat="server" Width="60">
									</asp:DropDownList>
								</itemtemplate>
                                        </asp:TemplateColumn>		
					<asp:TemplateColumn>
						<HeaderStyle Width="10%"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center"></ItemStyle>
						<ItemTemplate>
							<asp:Button id="Button2" runat="server" CausesValidation="false" CssClass="Button" Text="Chi tiết" CommandName="detail"></asp:Button>
						</ItemTemplate>
					</asp:TemplateColumn>
					<asp:TemplateColumn>
						<HeaderStyle Width="15%"></HeaderStyle>
						<ItemStyle HorizontalAlign="Center"></ItemStyle>
						<ItemTemplate>
							<asp:Button id="Button1" runat="server" CausesValidation="false" CssClass="Button" Width="38px" Text="Sửa" CommandName="edit"></asp:Button>
							<asp:Button id="Button3" runat="server" CssClass="Button" CausesValidation="false" Width="38px" Text="Xóa" CommandName="delete"></asp:Button>
						</ItemTemplate>
					</asp:TemplateColumn>					
				</columns>
            </asp:DataGrid></td>
    </tr>
</table>
